package com.zsrt.java.ex.facotry;

import static org.junit.Assert.*;

import org.junit.Test;

public class PersonTest {
	
	
	@Test
	public void testName() throws Exception {
		Person p=ObjectFacotry.createObj("学生");
		Person p2=ObjectFacotry.createObj("工人");
		
	    Person p3=ObjectFacotry.createStudent();
	    Person p4=ObjectFacotry.createWorker();
		
		
		
	}
	

}
